package Day01;


class AApple{
    private String color;
    private double weight;

    public AApple() {
    }

    public AApple(String color, double weight) {
        this.color = color;
        this.weight = weight;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }
    public String toString(){
        return "Apple[color=" + color + ", weight = " + weight + "]";
    }
}


public class Apple {
    public static void main(String[] args){
        AApple a = new AApple("红色",45.6);
        System.out.println(a);
    }
}
